﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace HasuSLUI
{
    /// <summary>
    /// RegisterdControl used for register default controls with UIDefaults
    /// </summary>
    public class RegisterdControl
    {
        public delegate void CreateControlDelegate(Control control);

        public CreateControlDelegate OnCreateControl = null;

        public delegate void DataBindingDelegate(Control control, object value);

        public DataBindingDelegate OnDataBinding = null;

        public Type ControlType { get; set; }

        public DependencyProperty BindingProperty { get; set; }

        int _defaultWidth = 100;

        /// <summary>
        /// Gets or sets the default width.
        /// </summary>
        /// <value>The default width.</value>
        public int DefaultWidth
        {
            get { return _defaultWidth; }
            set { _defaultWidth = value; }
        }


        #region DefaultHeight
        private int _defaultHeight = 0;
        /// <summary>
        /// Gets or sets the default height.
        /// </summary>
        /// <value>The default height.</value>
        public int DefaultHeight
        {
            get { return _defaultHeight; }
            set { _defaultHeight = value; }
        }

        #endregion DefaultHeight 


    }
}
